﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<Bastanteo.Domain.Rol>" %>
        
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Bastanteo
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Modificación de Roles</h2>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Modificar", "Rol", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Datos del Rol</legend>
            <div class="tdlabelForm"  >
                Código
                <%: Html.HiddenFor(model => model.RolId) %>
            </div>
            <div class="tdlabelForm" >
                <%: Model.RolId %>
            </div>
            
            <div class="tdlabelForm">
                Descripción
            </div>

            <div class="tdlabelForm">
                <%: Html.TextBoxFor(model => model.RolDescripcion) %>
                <%: Html.ValidationMessageFor(model => model.RolDescripcion) %>
            </div>
            <p>
                <input type="submit" value="Guardar" Class="btnout" style="width:70px"/>
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>
</asp:Content>

